<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="/css/style.css">
</head>

<body>
    <h3>笔记列表页
        <div>

        </div>
    </h3>

    <ul class="notelist">

    </ul>
    <script src="/js/axios.js" ></script>
    <script src="/js/list.js" type="module"></script>
    <script>
        async function removeNote(id) {
            let key = sessionStorage.getItem('login');

            // axios.get(`http://localhost/delnote/${id}`, `key=${key}`, (data) => {
            //     console.log(data);
            // })
            let res = await axios({
                url: `http://localhost/delnote/${id}`,
                params: {
                    key
                }
            })

            console.log(res);
        }
    </script>
</body>

</html>